home *** CD-ROM | disk | FTP | other *** search
/ Virtual Top Model / Virtual Top Model - Disc 1.iso / modulos / mod-2.dxr / Internal_8_boton salida.ls < prev    next >
Encoding:
Text File  |  1997-04-01  |  1.0 KB  |  35 lines

  1. on mouseUp
  2.   global sPathIni
  3.   if rollOver(12) then
  4.     set the member of sprite 12 to member "Fd_Bt_A/3" of castLib "elementos graficos"
  5.     puppetSprite(12, 0)
  6.     updateStage()
  7.     set oFichero to new(xtra("fileio"))
  8.     openFile(oFichero, sPathIni & "vtmprefs.ini", 2)
  9.     if status(oFichero) = -43 then
  10.       createFile(oFichero, sPathIni & "vtmprefs.ini")
  11.       closeFile(oFichero)
  12.       set oFichero to 0
  13.       set oFichero to new(xtra("fileio"))
  14.       openFile(oFichero, sPathIni & "vtmprefs.ini", 2)
  15.     end if
  16.     set sGrabar to string(bVideoNormal) & string(the soundLevel) & char 5 of the movie
  17.     writeString(oFichero, sGrabar)
  18.     closeFile(oFichero)
  19.     set oFichero to 0
  20.     go(1, sPathIni & "final")
  21.   end if
  22. end
  23.  
  24. on mouseDown
  25.   repeat while the stillDown
  26.     puppetSprite(12, 1)
  27.     if rollOver(12) then
  28.       set the member of sprite 12 to member "Fd_Bt_B/3" of castLib "elementos graficos"
  29.     else
  30.       set the member of sprite 12 to member "Fd_Bt_A/3" of castLib "elementos graficos"
  31.     end if
  32.     updateStage()
  33.   end repeat
  34. end
  35.